/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.dinner.entity.address;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 收货地址管理Entity
 * @author dai
 * @version 2018-11-26
 */
public class ResReceivingAddr extends DataEntity<ResReceivingAddr> {
	
	private static final long serialVersionUID = 1L;
	private String contactUser;		// 联系人
	private String mobile;		// 手机号
	private String address;		// 收货地址
	private String houseNumber;		// 门牌号
	private String longitude;		// 经度
	private String latitude;		// 纬度
	private String tag;		// 标签
	private String defaultFlag;		// 默认地址
	
	public ResReceivingAddr() {
		super();
	}

	public ResReceivingAddr(String id){
		super(id);
	}

	@Length(min=1, max=255, message="联系人长度必须介于 1 和 255 之间")
	public String getContactUser() {
		return contactUser;
	}

	public void setContactUser(String contactUser) {
		this.contactUser = contactUser;
	}
	
	@Length(min=1, max=255, message="手机号长度必须介于 1 和 255 之间")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	@Length(min=1, max=500, message="收货地址长度必须介于 1 和 500 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=500, message="门牌号长度必须介于 0 和 500 之间")
	public String getHouseNumber() {
		return houseNumber;
	}

	public void setHouseNumber(String houseNumber) {
		this.houseNumber = houseNumber;
	}
	
	@Length(min=0, max=255, message="经度长度必须介于 0 和 255 之间")
	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}
	
	@Length(min=0, max=255, message="纬度长度必须介于 0 和 255 之间")
	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}
	
	@Length(min=0, max=255, message="标签长度必须介于 0 和 255 之间")
	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}
	
	@Length(min=0, max=1, message="默认地址长度必须介于 0 和 1 之间")
	public String getDefaultFlag() {
		return defaultFlag;
	}

	public void setDefaultFlag(String defaultFlag) {
		this.defaultFlag = defaultFlag;
	}
	
}